import { StockInfo, PriceRes } from "..";


export interface CommonApi{

    /**
     * for keyword search.
     * @param key 
     */
    keywordSearch(key: string, callback: (info: StockInfo[]) => void);

    /**
     * batch price query.
     * @param item 
     */
    intervalSearch(item: string[], callback:(res: Map<string, PriceRes>)=> void ): void;
}